dataSource {
	pooled = true
//	driverClassName = "com.mysql.jdbc.Driver"
    driverClassName = "com.p6spy.engine.spy.P6SpyDriver" // use this driver to enable p6spy logging
	username = "root"   // enter your db username
	password = "root"   // enter your db password
}
hibernate {
    cache.use_second_level_cache=true
    cache.use_query_cache=true
    cache.provider_class='net.sf.ehcache.hibernate.EhCacheProvider'
}
// environment specific settings
environments {
	development {
		dataSource {
			dbCreate = "update" // one of 'create', 'create-drop','update'
			url = "jdbc:mysql://localhost/myproject"
            // enable next line to see sql query info
            //loggingSql = true
		}

	}
	test {
		dataSource {
			dbCreate = "update"
			url = "jdbc:mysql://localhost/myproject"
                        loggingSql = true  
		}
	}
	production {
		dataSource {
			dbCreate = "update"
            url = "jdbc:mysql://${System.getProperty("dbHostName", "localhost")}/myproject"
		}
	}
}
